import request from '@/utils/request'
import { praseStrEmpty } from "@/utils/ruoyi";
export function listProcessDefinition(query){
	return request({
		url:'/process/definition/list',
		method:'get',
		params:query
	})
}

export function listMyProcess(query){
	return request({
		url:'/process/definition/listMyProcess',
		method:'get',
		params:query
	})
}

export function suspendProcessDefinition(id){
	let data ={
		id
	}
	return request({
		url:'/process/definition/suspend',
		method:'post',
		params:data
	})
}
export function activateProcessDefinition(id){
	let data ={
		id
	}
	return request({
		url:'/process/definition/activate',
		method:'post',
		params:data
	})
}
export function deleteProcessDefinition(definitionId){
	return request({
		url:'/process/definition/'+ praseStrEmpty(definitionId),
		method:'delete',
	})
}